﻿namespace WLFramework.Validation
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    [AttributeUsage(AttributeTargets.Property)]
    public class IgnoreAttribute : Attribute
    {
        public bool IsIgnoreGet { get; set; }
        public bool IsIgnoreSet { get; set; }
        public bool IsIgnoreMapping { get; set; }
        public bool IsIgnoreJson { get; set; }

        public IgnoreAttribute()
            : this(true, true, true, true)
        {
        }

        public IgnoreAttribute(bool get, bool set, bool mapping, bool json)
        {
            this.IsIgnoreGet = get;
            this.IsIgnoreSet = set;
            this.IsIgnoreMapping = mapping;
            this.IsIgnoreJson = json;
        }
    }
}
